home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Mops 2.5 / Mops ƒ / String < prev    next >
Encoding:
Text File  |  1994-08-19  |  6.2 KB  |  14 lines  |  [TEXT/MSET]

  1. \ String class.
  2.  
  3. \ This class is changed radically from Neon!  We now keep two offsets into a string
  4. \ - POS and LIM.  POS marks the "current" position, and LIM the "current" end.
  5. \ Most string operations operate on the substring delimited by POS and LIM, which
  6. \ we call the active part of the string. We also keep the size of the string (the
  7. \ real size, that is) in an ivar, so that we can get it quickly without a system
  8. \ call.
  9.  
  10.    $ D    constant    RET            \ Carriage return character
  11.  
  12. : $ER
  13.     setFwind
  14.     cr ." size